package com.situ.mall.service;

import java.util.List;

import com.situ.mall.entity.Product;
import com.situ.mall.entity.Result;

public interface IProductService {
	public abstract List<Product> selectAll();

	public abstract Result selectByPage(Integer page, Integer limit, Product product);

	public abstract boolean deleteAll(Integer[] ids);

	public abstract boolean deleteById(Integer id);

//4.添加
	public abstract boolean insert(Product product);

//前台
	// by二级id 找属于它的所有商品
	public abstract List<Product> selectProductListBySecondCategoryId(Integer secondCategoryId);

	public abstract Product selectProductByProductId(Integer productId);

	
}
